package org.ddd.book.infrastructure.book.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ddd.book.infrastructure.BasePO;

@TableName("t_book_library")
@Data
@EqualsAndHashCode(callSuper = true)
public class LibraryPO extends BasePO {
    @TableId(value = "library_id",type = IdType.ASSIGN_ID)
    private Long id;
    // 图书馆名称
    @TableField("library_name")
    private String libraryName;
    // 简介
    @TableField("introductory")
    private String introductory;
    // 开放时间
    @TableField("open_time")
    private String openTime;
    // 管理员ID
    @TableField("admin_user_id")
    private Long adminUserId;
    // 管理员名称
    @TableField("admin_user_name")
    private String adminUserName;
    // 国家编码
    @TableField("country_code")
    private String countryCode;
    // 省份编码
    @TableField("province_code")
    private String provinceCode;
    // 城市编码
    @TableField("city_code")
    private String cityCode;
    // 地址详情
    @TableField("address_detail")
    private String addressDetail;
    // 地址详情全称
    @TableField("full_address_detail")
    private String fullAddressDetail;
}
